import { UPDATEPAGEEDITJOBINTENTION } from '../types/pageeditjobintention'
import { handleActions } from 'redux-actions'

const Schema = {
  showEmpty: false,
  requestOverFirst: false,
  networkerror: false,
  breaklocation: false,
  havenoshopbyshare: false,
  workPlace: [],
  workNature: [],
  workCategory: [],
  jobCity: null
}

export default handleActions({
  [UPDATEPAGEEDITJOBINTENTION] (state, action) {
    return {
      ...state,
      ...action.payload
    }
  }
}, Schema)
